{extend name="web/public/base" /}
{block name="header"}
{/block}
{block name="main"}
<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">日结奖金</li>
        <li class="active">{$title}</li>
    </ul>
    <div class="row">
        <div class="col-sm-12">
            <section class="panel panel-default">
                <header class="panel-heading"> {$title}</header>
                <div class="row col-lg-12">
                    <div class="form-group col-sm-6">
                        <label>选择接点人</label>
                        <select class="form-control" name="parentid" id="parentid">
                            {foreach name="bmembers" item="vo"}
                            <option value="{$vo.id}">{$vo.usernumber}</option>
                            {/foreach}
                        </select>
                    </div>
                    <div class="form-group col-sm-6">
                        <label>选择接点区</label>
                        <select class="form-control" name="zone" id="zone">
                            <option value="1">左区</option>
                            <option value="2">中区</option>
                            <option value="3">右区</option>
                        </select>
                    </div>
                </div>
                <footer class="panel-footer text-right bg-light lter col-sm-12">
                    <button class="btn btn-success btn-s-xs" onclick="fajiang();return false;">点击注册</button>
                </footer>
            </section>
        </div>
    </div>
</section>
{/block}
{block name="script"}
<script type="text/javascript">
    function fajiang() {
        var uid = "{$uid}";
        var parentid = $('#parentid').val();
        var zone = $('#zone').val();
        $.post("{:url('intoB')}", {uid: uid, parentid: parentid, zone: zone}, function (data) {
            layer.msg(data.msg);
            if (data.code) {
                setTimeout(function () {
                    location.href = data.url;
                }, 1000)
            }
        }, "json");
        return false;
    }
</script>
{/block}
{block name="footer"}
{/block}